Fix 'xm info' (sizeof(param) doesn't do that one might hope).
authorshand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Fri, 9 Sep 2005 18:36:48 +0000 (10:36 -0800)
committershand@ubuntu.eng.hq.xensource.com <shand@ubuntu.eng.hq.xensource.com>
Fri, 9 Sep 2005 18:36:48 +0000 (10:36 -0800)
Signed-off-by: Steven Hand <steven@xensource.com>
xen/arch/x86/setup.c

index 36ba740cd7c60161f80c19a762757d3d9b9de389..b955b7d8e4cf6207c44b2f67d7fff46e66a22f7f 100644 (file)
@@ -568,7 +568,7 @@ void arch_get_xen_caps(xen_capabilities_info_t info)
     
     *(p-1) = 0;
 
-    BUG_ON((p - info) > sizeof(info));
+    BUG_ON((p - info) > sizeof(xen_capabilities_info_t));
 }
 
 /*